<?php

namespace app\h5api\validate;

use think\Validate;

class ApplyBeSales extends Validate
{
	protected $scene = [
        'apply' => [
			'user_name',
			'telphone',
//			'id_card',
            'email',
		],
	];

	protected $rule =   [
		'user_name' => 'require|max:25',
		'telphone' => 'require|mobile',
		'id_card'=>'require|idCard',
		'email'=>'require|email',
	];

	protected $message  =   [
		'user_name.require' => '请填写姓名',
		'telphone.require' => '请填写手机号码',
		'telphone.mobile' => '手机号码格式错误',
		'id_card.require' => '请填写身份证号',
		'id_card.idCard' => '无效身份证',
		'email.require' => '请填写邮箱',
		'email.idCard' => '无效邮箱',
	];
}
